package com.fishery.base.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fishery.base.entity.GermchitType;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

public interface GermchitTypeService extends IService<GermchitType> {
	/**
	 * 将Excel中的数据保存到数据库中
	 *
	 * @param file
	 * @return
	 */
	boolean saveDataToDBWithExcel(MultipartFile file);

	/**
	 * 将数据以Excel形式下载
	 * @param response
	 */
	void downloadData(HttpServletResponse response);
}
